<?php
/**
*代理商账户主控制器
*/
namespace Reseller\Controller;
use Think\Controller;
class IndexController extends CommonController {

	//存储代理商信息
	protected $reseller_info;
	
public function _initialize(){
	parent::_initialize();
	$con['aff_id']=session('aid');
	$con['aff_isactive']=1;
	$this->reseller_info=M("affiliate")->where($con)->find();
	$this->reseller_info || $this->redirect("Home/Public/login");
	//dump($this->reseller_info);
	$this->assign("reseller_info",$this->reseller_info);
}
	
/**
*登录成功后的主页	
*/	
public function index(){
	$this->display();
}

	
}

